package com.sddnytsh.body_buildingsystem.topic

/**
 * 饮食相关数据模型
 */

/**
 * 食物信息
 */
data class FoodInfo(
    val id: Long,
    val name: String,
    val calories: Double,
    val carbohydrates: Double,
    val protein: Double,
    val fat: Double,
    val category: String,
    val createdAt: String,
    val updatedAt: String
)

/**
 * 饮食记录创建请求
 */
data class DietRecordCreateRequest(
    val userId: Long,
    val foodId: Long,
    val amount: Double,
    val mealTime: String,
    val mealType: String
)

/**
 * 饮食记录项
 */
data class FoodRecordItem(
    val id: Long,
    val userId: Long,
    val foodId: Long,
    val foodName: String,
    val amount: Double,
    val totalCalories: Double,
    val totalCarbohydrates: Double,
    val totalProtein: Double,
    val totalFat: Double,
    val mealTime: String,
    val mealType: String,
    val createdAt: String
)

/**
 * 营养汇总
 */
data class NutritionSummary(
    val totalCalories: Double,
    val totalCarbohydrates: Double,
    val totalProtein: Double,
    val totalFat: Double,
    val recordCount: Int,
    val date: String
)

/**
 * 饮食记录
 */
data class DietRecord(
    val id: Long,
    val userId: Long,
    val foodId: Long,
    val foodName: String,
    val amount: Double,
    val mealTime: String,
    val mealType: String,
    val totalCalories: Double,
    val totalCarbohydrates: Double,
    val totalProtein: Double,
    val totalFat: Double,
    val createdAt: String,
    val updatedAt: String
)
